"""
@Author: li
@Email: lijianqiao2906@live.com
@FileName: __init__.py
@DateTime: 2025/07/05
@Docs: API v1路由初始化
"""

from fastapi import APIRouter

from app.api.v1.auth import router as auth_router
from app.api.v1.menu import router as menu_router
from app.api.v1.permission import router as permission_router
from app.api.v1.role import router as role_router
from app.api.v1.system_config import router as system_config_router
from app.api.v1.system_log import router as system_log_router
from app.api.v1.user import router as user_router

# 创建v1版本路由
v1_router = APIRouter()

# 注册认证路由
v1_router.include_router(auth_router, prefix="/auth", tags=["认证"])

# 注册用户管理路由
v1_router.include_router(user_router, prefix="/users", tags=["用户管理"])

# 注册角色管理路由
v1_router.include_router(role_router, prefix="/roles", tags=["角色管理"])

# 注册权限管理路由
v1_router.include_router(permission_router, prefix="/permissions", tags=["权限管理"])

# 注册菜单管理路由
v1_router.include_router(menu_router, prefix="/menus", tags=["菜单管理"])

# 注册系统日志路由
v1_router.include_router(system_log_router, prefix="/logs", tags=["系统日志"])

# 注册系统配置路由
v1_router.include_router(system_config_router, prefix="/configs", tags=["系统配置"])
